<template>
	<view class="my-article-container">
		<ListItem v-if="my_article.length" is_search :search_list="my_article" />
		<view class="no-data" v-else>
			你还没有发布任何文章哦~
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				my_article: [],
			}
		},
		async onLoad() {
			this.my_article = await this.$http.get_my_article({
				user_id: this.user_info._id
			})
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #eee;
	}
</style>
